package com.itheima.d1_create_thread.ZengTest3;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

/**
 * @ClassName zengTest3
 * @Author 16799
 * @Date 2025/8/31 15:42
 * @Version 1.0
 * @Description TODO
 **/
public class zengTest3 {
    public static void main(String[] args) throws Exception {
        zengCallable z1 = new zengCallable(5);
        FutureTask<String> f1 = new FutureTask<>(z1);

        new Thread(f1).start();

        System.out.println(f1.get());
    }
}
